import { defineStore } from "pinia";

import { ref, computed } from "vue";
export const routerstroe = defineStore(
  "routerstroe",
  () => {
    let defalutActiveValue = ref("");
    let ticketForm = ref({
      date: new Date(),
      fromCity: "",
      toCity: "",
    });
    return { defalutActiveValue, ticketForm };
  },
  {
    persist: {
      enabled: true, //开启持久化
    },
  }
);
